// toast提醒成功处理
export const toastCallBack = (title, icon = "success", callback) => {
  uni.showToast({
    icon,
    title,
    success: () => {
      const timer = setTimeout(() => {
        if (callback) {
          callback()
        } else {
          uni.navigateBack();
        }
        clearTimeout(timer)
      }, 1500)
    }
  });
}
